public class PC {
    CPU cpu;
    HardDisk HD;

    void setCPU(CPU c){
        this.cpu= c;
    }
    void setHardDisk(HardDisk h){
        this.HD=h;
    }
    void show(){
        System.out.println("硬盘容量："+HD);
        System.out.println("CPU速度："+cpu);
    }

}
